package com.ruoyi.blackuser.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户管理对象 black_user
 * 
 * @author ruoyi
 * @date 2025-11-20
 */
public class BlackUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    private Long id;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 密码 */
    private String password;

    /** 用户状态 */
    @Excel(name = "用户状态")
    private Long status;

    /** 头像 */
    @Excel(name = "头像")
    private String avatar;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    /** 等级 */
    @Excel(name = "等级")
    private Long level;

    /** 团队长 */
    @Excel(name = "团队长")
    private Integer isTeamLeader;

    /** 团队长id */
    @Excel(name = "团队长id")
    private Long teamLeaderId;

    /** 上级用户 */
    @Excel(name = "上级用户")
    private Long parentId;

    /** 邀请码 */
    @Excel(name = "邀请码")
    private String invCode;

    /** 余额 */
    @Excel(name = "余额")
    private BigDecimal balance;

    /** 资金密码 */
    private String fundPassword;

    /** 扩展字段 */
    private String extra;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }

    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }

    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }

    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }

    public void setIsTeamLeader(Integer isTeamLeader) 
    {
        this.isTeamLeader = isTeamLeader;
    }

    public Integer getIsTeamLeader() 
    {
        return isTeamLeader;
    }

    public void setTeamLeaderId(Long teamLeaderId) 
    {
        this.teamLeaderId = teamLeaderId;
    }

    public Long getTeamLeaderId() 
    {
        return teamLeaderId;
    }

    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }

    public void setInvCode(String invCode) 
    {
        this.invCode = invCode;
    }

    public String getInvCode() 
    {
        return invCode;
    }

    public void setBalance(BigDecimal balance) 
    {
        this.balance = balance;
    }

    public BigDecimal getBalance() 
    {
        return balance;
    }

    public void setFundPassword(String fundPassword) 
    {
        this.fundPassword = fundPassword;
    }

    public String getFundPassword() 
    {
        return fundPassword;
    }

    public void setExtra(String extra) 
    {
        this.extra = extra;
    }

    public String getExtra() 
    {
        return extra;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("status", getStatus())
            .append("avatar", getAvatar())
            .append("nickname", getNickname())
            .append("level", getLevel())
            .append("isTeamLeader", getIsTeamLeader())
            .append("teamLeaderId", getTeamLeaderId())
            .append("parentId", getParentId())
            .append("invCode", getInvCode())
            .append("balance", getBalance())
            .append("fundPassword", getFundPassword())
            .append("extra", getExtra())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
